{@$_menu_class=array('dashboard','catalog','sales','customers','navigation','statistics','design','configuration');}
{@
    $_menu_class_subitems = array(
            array(),
            array('products','categories','attributes'),
            array('orders','invoices','shipments'),
            array('manage_accounts','subscribers','newsletters'),
            array('all_menus','all_pages','add_page'),
            array('visitor_statistics'),
            array('skin','html','menus'),
            array('admin_account','shop_config','shop_discout','shop_discout','shipping','payment')
    );
}
			<div class="extension e1">

				<div class="section" id="tool_navigation">
					<h3>{$lang->navigation}</h3>
					<ul>
					{@$i=0}
                        <!--@foreach($lang->shop_first_menus as $key => $val)-->
                            {@$_sub = $lang->shop_second_menus[$key]}
                            {@$_attached = $custom_menu->attached_menu[$key]}
                            <!--@if($act==$val[0]||is_array($_sub) && in_array($act,array_keys($_sub)))-->{@$_sel="active"}<!--@else-->{$_sel=""}<!--@end-->
                            
							<li class="{$_menu_class[$i++]} {$_sel}<!--@if(!count($_sub))--> noChild<!--@end-->">
                            <!--@if($val[0])-->
                                <a href="{getSiteUrl($shop->domain,'','mid',$mid,'act',$val[0])}">
                                    <span class="icon"></span>
                                    <span class="text">{$val[1]}</span>
                                </a>
                            <!--@else-->
                                <a href="#nav">
                                    <span class="icon"></span>
                                    <span class="text">{$val[1]}</span>
                                </a>
                            <!--@end-->

                            <!--@if(count($_sub) || count($_attached))-->
                            <ul>
                                {@$j=0}
                                <!--@foreach($_sub as $k => $v)-->
								<li class="{$_menu_class_subitems[$i-1][$j++]} <!--@if($k==$act)-->active<!--@end-->">
                                    <a href="{getSiteUrl($shop->domain,'','mid',$mid,'act',$k)}">
                                        <span class="icon"></span>
                                        <span class="text">{$v}</span>
                                    </a>
                                </li>
                                <!--@end-->
                                {@$j=0}
                                <!--@foreach($_attached  as $k => $v)-->
								<li class="{$_menu_class_subitems[$i-1][$j++]} <!--@if($k==$act)-->active<!--@end-->">
                                    <a href="{getSiteUrl($shop->domain,'','mid',$mid,'act',$k)}">
                                        <span class="icon"></span>
                                        <span class="text">{$v}</span>
                                    </a>
                                </li>
                                <!--@end-->
                            </ul>
                            <!--@end-->
                        </li>
                        <!--@end-->
					</ul>
				</div>
				
				<p class="goToHelp">
					<a href="http://www.xpressengine.org/help_and_support" target="_blank" title="{$lang->cmd_new_window}">{$lang->cmd_go_help}</a>
					|
					<a href="http://www.xpressengine.org/forum" target="_blank" title="{$lang->cmd_new_window}">{$lang->shop_bug_report}</a>
				</p>

				<div class="language">
					<button type="button" onclick="jQuery('#selectLang').toggleClass('hide'); return false;" class="selected" title="{$lang_type}">{$lang_supported[$lang_type]}</button>
					<ul class="hide" id="selectLang">
						<!--@foreach($lang_supported as $key => $val)--><!--@if($key!= $lang_type)-->
						<li><button type="button" onclick="doChangeLangType('{$key}');return false;">{$val}</button></li>
						<!--@end--><!--@end-->
					</ul>
				</div>
				
			</div>
